package com.validator;

 


/**
 * <p></p>
 *
 * @author zhaomingjie
 * @version $Id: LoginRequestValidator, v1.0 2018/11/1 10:19 zhaomingjie Exp $
 */
public class FastGenerateRequestValidator implements Validator {
    /**
     * 校验方法
     *
     * @param obj
     * @throws ValidationException
     */
    @Override
    public void validate(Object obj) throws ValidationException {
//        if(obj instanceof FastGenerateTokenRequest){
//            Assert.hasText(((FastGenerateTokenRequest) obj).getDeviceId(),"设备ID不能为空！");
//            Assert.hasText(((FastGenerateTokenRequest) obj).getTerminalType(),"终端类型不能为空！");
//            Assert.hasText(((FastGenerateTokenRequest) obj).getMemberId(),"memberID不能为空！");
//        }else {
//            throw new ValidationException("入参不为TokenRequest对象!");
//        }
    	 throw new ValidationException("入参不为TokenRequest对象!");
    }
}
